/**
 * 
 */
function drawpiechart(data) {
  //Create pie chart
  var bluffGraph = new Bluff.Pie('bluffExample', 350);
//bluffGraph.title_font_size = 10;
//bluffGraph.legend_font_size = 10;
//bluffGraph.marker_font_size = 10;

  //  var bluffGraph2 = new Bluff.Pie('bluffExample2', 400);
  //Use keynote theme. Several other themes can be used
//  bluffGraph.theme_keynote();
  bluffGraph.tooltips=true;
 
  bluffGraph.set_theme({
	    colors: ['pink', 'blue', 'yellow', 'green',
	             '#999999', '#6a5b87', '123456'],
	    marker_color: '#aea9a9',
	    font_color: 'black',
	    background_colors: ['white', 'white']
	  });
 
  
  //bluffGraph.title = '';
  
//  bluffGraph2.theme_keynote();
//  bluffGraph2.title = 'Number of posts';

  for (i in data.items) {
    var item = data.items[i];
    //Add each data item to pie
    bluffGraph.data(item.label, item.data);
//    bluffGraph2.data(item.label, item.data);
  }
  //Finally draw the chart
  bluffGraph.draw();
//  bluffGraph2.draw();
}